﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="crowdDataSet" targetNamespace="http://tempuri.org/crowdDataSet.xsd" xmlns:mstns="http://tempuri.org/crowdDataSet.xsd" xmlns="http://tempuri.org/crowdDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="crowdConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="crowdConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Plate.Properties.Settings.GlobalReference.Default.crowdConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CarImagesTableAdapter" GeneratorDataComponentClassName="CarImagesTableAdapter" Name="CarImages" UserDataComponentName="CarImagesTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="crowdConnectionString (Settings)" DbObjectName="crowd.dbo.CarImages" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[CarImages] WHERE (([Filename] = @Original_Filename) AND ((@IsNull_TestResult = 1 AND [TestResult] IS NULL) OR ([TestResult] = @Original_TestResult)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Filename" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Filename" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TestResult" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TestResult" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_TestResult" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TestResult" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[CarImages] ([Filename], [Attributes], [TestResult]) VALUES (@Filename, @Attributes, @TestResult);
SELECT Filename, Attributes, TestResult FROM CarImages WHERE (Filename = @Filename)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Filename" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Filename" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Xml" Direction="Input" ParameterName="@Attributes" Precision="0" ProviderType="Xml" Scale="0" Size="0" SourceColumn="Attributes" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@TestResult" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TestResult" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Filename, Attributes, TestResult FROM dbo.CarImages</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[CarImages] SET [Filename] = @Filename, [Attributes] = @Attributes, [TestResult] = @TestResult WHERE (([Filename] = @Original_Filename) AND ((@IsNull_TestResult = 1 AND [TestResult] IS NULL) OR ([TestResult] = @Original_TestResult)));
SELECT Filename, Attributes, TestResult FROM CarImages WHERE (Filename = @Filename)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Filename" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Filename" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Xml" Direction="Input" ParameterName="@Attributes" Precision="0" ProviderType="Xml" Scale="0" Size="0" SourceColumn="Attributes" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@TestResult" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TestResult" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_Filename" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="Filename" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TestResult" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TestResult" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_TestResult" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TestResult" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Filename" DataSetColumn="Filename" />
              <Mapping SourceColumn="Attributes" DataSetColumn="Attributes" />
              <Mapping SourceColumn="TestResult" DataSetColumn="TestResult" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="crowdDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_DataSetName="crowdDataSet" msprop:Generator_UserDSName="crowdDataSet" msprop:EnableTableAdapterManager="True">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="CarImages" msprop:Generator_UserTableName="CarImages" msprop:Generator_RowDeletedName="CarImagesRowDeleted" msprop:Generator_TableClassName="CarImagesDataTable" msprop:Generator_RowChangedName="CarImagesRowChanged" msprop:Generator_RowClassName="CarImagesRow" msprop:Generator_RowChangingName="CarImagesRowChanging" msprop:Generator_RowEvArgName="CarImagesRowChangeEvent" msprop:Generator_RowEvHandlerName="CarImagesRowChangeEventHandler" msprop:Generator_TablePropName="CarImages" msprop:Generator_TableVarName="tableCarImages" msprop:Generator_RowDeletingName="CarImagesRowDeleting">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Filename" msprop:Generator_UserColumnName="Filename" msprop:Generator_ColumnPropNameInRow="Filename" msprop:Generator_ColumnVarNameInTable="columnFilename" msprop:Generator_ColumnPropNameInTable="FilenameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Attributes" msprop:Generator_UserColumnName="Attributes" msprop:Generator_ColumnPropNameInRow="Attributes" msprop:Generator_ColumnVarNameInTable="columnAttributes" msprop:Generator_ColumnPropNameInTable="AttributesColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TestResult" msprop:Generator_UserColumnName="TestResult" msprop:Generator_ColumnPropNameInRow="TestResult" msprop:Generator_ColumnVarNameInTable="columnTestResult" msprop:Generator_ColumnPropNameInTable="TestResultColumn" type="xs:boolean" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:CarImages" />
      <xs:field xpath="mstns:Filename" />
    </xs:unique>
  </xs:element>
</xs:schema>